package com.wpw.dream.copyonwrite;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CopyOnWriteArraySet;

public class CopyOnWriteTest {
	
	public static void main(String[] args) {
		CopyOnWriteArrayList<String> cowl = new CopyOnWriteArrayList<>();
		cowl.add("a");
		cowl.get(2);
		
		ArrayList<String> list = new ArrayList<>();
		list.add("b");
		list.get(0);
		
		LinkedList<String> ll = new LinkedList<>();
		ll.add("a");
		
		CopyOnWriteArraySet<String> cowSet = new CopyOnWriteArraySet<>();
		cowSet.add("a");
		
		Map<String, String> map = new HashMap<>();
		map.put("", "");
		
		ConcurrentHashMap<String, Object> ccMap = new ConcurrentHashMap<>();
		ccMap.put("", "");
		
	}
}
